/**
 * 创建人:冯斌    创建日期:2007-12-16
 */
package com.wsj.web.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

/**
 * @author fengbin
 * 基本Action接口
 *
 */
public interface IBaseAction {
    
    /***
     * 添加接口
     */
    public ActionForward add(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    
    /***
     * 更新接口
     */
    public ActionForward update(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    
    /***
     * 列表接口
     */
    public ActionForward list(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    
    /***
     * 删除接口
     */
    public ActionForward delete(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    
    /***
     * 添加之前处理
     * 
     */
    public ActionForward toadd(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    
    /***
     * 更新之前处理
     */
    
    public ActionForward toupdate(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
    
    /***
     * 设置信息
     */
    public void setPopMsg(HttpServletRequest request,String msgName,String msg);

    
    
    /***
     * 搜索
     */
    public ActionForward search(
            ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) ;
   
    

}
